
//
//  Universal.swift
//  Weibo(Swift)
//
//  Created by 阳 on 16/7/9.
//  Copyright © 2016年 阳. All rights reserved.
//

import UIKit

//********************* 通用设置 *********************//
/// 主题颜色
let ThemeColor :UIColor = UIColor.orangeColor()

/// 屏幕宽度
let screenWidth = UIScreen.mainScreen().bounds.size.width

/// 屏幕高度
let screenHeight = UIScreen.mainScreen().bounds.size.height

/// 屏幕bounds
let screenBounds = UIScreen.mainScreen().bounds

/// 屏幕尺寸
let screenScale = UIScreen.mainScreen().scale

/// 屏幕size
let screenSize = UIScreen.mainScreen().bounds.size

/// 登陆成功通知名
let loginSuccessNotification = "loginSuccessNotification"


//********************* 通用方法 *********************//
func delay(delayTime : NSTimeInterval , action : () -> Void)
{
    let time = dispatch_time(DISPATCH_TIME_NOW ,Int64(delayTime * Double(NSEC_PER_SEC)))
    dispatch_after(time, dispatch_get_global_queue(0, 0)) { () -> Void in
        action()
    }
}









